<?php

class Module_Mediate_CaseOperationLog extends Module_BaseModule
{
    private static $obj = null;
    private $model = null;
    use Lib_BaseTraitsModule;

    /**
     * 封闭构造
     */
    public function __construct()
    {
        $this->model = new Model_Mediate_CaseOperationLog();
    }

    /**
     * 单例获取
     * 保证一条进程只产生一个Module对象
     * @return  Module_Mediate_CaseOperationLog
     */
    public static function getInstance()
    {
        if (empty(self::$obj)) {
            self::$obj = new self();
        }
        return self::$obj;
    }

    /**
     * @param $insertdata
     * @return mixed
     */
    public function insert($insertdata)
    {
        return $this->model->insert($insertdata);
    }
}
